package hash

import "fanshuai-go/common"

type IHashtable interface {
	insert(key string, value common.Comparable)
	find(key string) (common.Comparable, bool)
	delete(key string)

	size() int
	isEmpty() bool

	contains() bool
}

type Iterator interface {
	hasNext() bool
	next() common.Comparable
}
